From: Florian Müllner Date: Tue, 29 Aug 2023 23:47:00 +0000 (+0200) Subject: status/network: Use connection name with hidden AP X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~320^2^2~31 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=3c6c8a40aeb52fd5859b2cc8a3251dde89e689db;p=gnome-shell.git status/network: Use connection name with hidden AP When connected to an OWE transition network, NetworkManager reports the connected API with a hidden SSID. Handle this by using the active connection's name before ultimately falling back to the device name. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6918 Part-of: --- diff --git a/js/ui/status/network.js b/js/ui/status/network.js index e0f44d0f8..324ad4f55 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -1166,6 +1166,11 @@ const NMWirelessDeviceItem = GObject.registerClass({ if (ssid) return ssidToLabel(ssid); + // Use connection name when connected to hidden AP + const {activeConnection} = this._device; + if (activeConnection) + return activeConnection.connection.get_id(); + return this._deviceName; }